﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SharedGenomics.Domain;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public partial class GeneSummaryView : View, IGeneSummaryView
    {
        public GeneSummaryView()
        {
            InitializeComponent();
        }

        public Gene Gene
        {
            set
            {
                if (value != null)
                {
                    this.Text = String.Format("Summary for {0}", value.Name ?? "<null>");
                    this.bindingSource.DataSource = value;
                }
            }
        }

        public override string Title
        {
            get { return "Gene Summary"; }
        }
    }
}